<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/SMS.Entities" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/SMS.Entities" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:58276/Service/CustomerMasterService.svc?xsd=xsd3" namespace="http://schemas.datacontract.org/2004/07/SMS.Entities.BaseClasses" />
  <xs:import schemaLocation="http://localhost:58276/Service/CustomerMasterService.svc?xsd=xsd4" namespace="http://schemas.datacontract.org/2004/07/SMS.Entities.Enums" />
  <xs:complexType name="Customer">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q1="http://schemas.datacontract.org/2004/07/SMS.Entities.BaseClasses" base="q1:BaseEntity">
        <xs:sequence>
          <xs:element minOccurs="0" name="Customer_Address" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Customer_AlterMobile" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Customer_CreditLimit" type="xs:decimal" />
          <xs:element minOccurs="0" name="Customer_ID" type="xs:int" />
          <xs:element minOccurs="0" name="Customer_Mobile" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Customer_Name" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="Customer" nillable="true" type="tns:Customer" />
  <xs:complexType name="SMSException">
    <xs:sequence>
      <xs:element minOccurs="0" name="InnerException" nillable="true" type="tns:SMSException" />
      <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SMSException" nillable="true" type="tns:SMSException" />
  <xs:complexType name="ArrayOfCustomer">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Customer" nillable="true" type="tns:Customer" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfCustomer" nillable="true" type="tns:ArrayOfCustomer" />
  <xs:complexType name="ArrayOfCustomerTransaction">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="CustomerTransaction" nillable="true" type="tns:CustomerTransaction" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfCustomerTransaction" nillable="true" type="tns:ArrayOfCustomerTransaction" />
  <xs:complexType name="CustomerTransaction">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q2="http://schemas.datacontract.org/2004/07/SMS.Entities.BaseClasses" base="q2:BaseEntity">
        <xs:sequence>
          <xs:element minOccurs="0" name="Amount" type="xs:decimal" />
          <xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/SMS.Entities.Enums" minOccurs="0" name="CreditDebit" type="q3:TransactionType" />
          <xs:element minOccurs="0" name="Customer" nillable="true" type="tns:Customer" />
          <xs:element minOccurs="0" name="RunningTotal" type="xs:decimal" />
          <xs:element minOccurs="0" name="SaleHistory" nillable="true" type="tns:SaleHistory" />
          <xs:element minOccurs="0" name="SalesMan" nillable="true" type="tns:SalesManDetail" />
          <xs:element minOccurs="0" name="TransactionDate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="Transaction_Id" type="xs:int" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="CustomerTransaction" nillable="true" type="tns:CustomerTransaction" />
  <xs:complexType name="SaleHistory">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q4="http://schemas.datacontract.org/2004/07/SMS.Entities.BaseClasses" base="q4:BaseEntity">
        <xs:sequence>
          <xs:element minOccurs="0" name="ActualSelliingPrice" type="xs:decimal" />
          <xs:element minOccurs="0" name="BuyingPrice" type="xs:decimal" />
          <xs:element minOccurs="0" name="Counter_ID" type="xs:int" />
          <xs:element minOccurs="0" name="Customer" nillable="true" type="tns:Customer" />
          <xs:element minOccurs="0" name="Discount" type="xs:decimal" />
          <xs:element minOccurs="0" name="Is_Paid" type="xs:boolean" />
          <xs:element minOccurs="0" name="PaidAmount" type="xs:decimal" />
          <xs:element minOccurs="0" name="Received" type="xs:decimal" />
          <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Return" type="xs:decimal" />
          <xs:element minOccurs="0" name="Sale_ID" type="xs:int" />
          <xs:element minOccurs="0" name="SalesDetailList" nillable="true" type="tns:ArrayOfSaleDetail" />
          <xs:element minOccurs="0" name="SalesMan" nillable="true" type="tns:SalesManDetail" />
          <xs:element minOccurs="0" name="Selling_Date" type="xs:dateTime" />
          <xs:element minOccurs="0" name="TotalSellingPrice" type="xs:decimal" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="SaleHistory" nillable="true" type="tns:SaleHistory" />
  <xs:complexType name="ArrayOfSaleDetail">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="SaleDetail" nillable="true" type="tns:SaleDetail" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfSaleDetail" nillable="true" type="tns:ArrayOfSaleDetail" />
  <xs:complexType name="SaleDetail">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q5="http://schemas.datacontract.org/2004/07/SMS.Entities.BaseClasses" base="q5:BaseEntity">
        <xs:sequence>
          <xs:element minOccurs="0" name="BilledAmount" type="xs:decimal" />
          <xs:element minOccurs="0" name="Discount" type="xs:decimal" />
          <xs:element minOccurs="0" name="DiscountValue" type="xs:decimal" />
          <xs:element minOccurs="0" name="ProductStockWise" nillable="true" type="tns:ProductStockWise" />
          <xs:element minOccurs="0" name="Product_Stock_ID" type="xs:int" />
          <xs:element minOccurs="0" name="Quantity" type="xs:int" />
          <xs:element minOccurs="0" name="SaleDetail_ID" type="xs:int" />
          <xs:element minOccurs="0" name="SalesHistory" nillable="true" type="tns:SaleHistory" />
          <xs:element minOccurs="0" name="SellingUnitPrice" type="xs:decimal" />
          <xs:element minOccurs="0" name="TotalAmount" type="xs:decimal" />
          <xs:element minOccurs="0" name="TotalCost" type="xs:decimal" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="SaleDetail" nillable="true" type="tns:SaleDetail" />
  <xs:complexType name="ProductStockWise">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q6="http://schemas.datacontract.org/2004/07/SMS.Entities.BaseClasses" base="q6:BaseEntity">
        <xs:sequence>
          <xs:element minOccurs="0" name="BuyingPrice" type="xs:decimal" />
          <xs:element minOccurs="0" name="Discount" type="xs:decimal" />
          <xs:element minOccurs="0" name="IsSellingMarginPercentile" type="xs:boolean" />
          <xs:element minOccurs="0" name="Product" nillable="true" type="tns:Product" />
          <xs:element minOccurs="0" name="ProductBrand" nillable="true" type="tns:Brand" />
          <xs:element minOccurs="0" name="Product_Stock_ID" type="xs:int" />
          <xs:element minOccurs="0" name="Quantity" type="xs:decimal" />
          <xs:element minOccurs="0" name="SellingMargin" type="xs:decimal" />
          <xs:element minOccurs="0" name="SoledQuantity" type="xs:decimal" />
          <xs:element minOccurs="0" name="Stock" nillable="true" type="tns:StockMaster" />
          <xs:element minOccurs="0" name="UOM" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="ProductStockWise" nillable="true" type="tns:ProductStockWise" />
  <xs:complexType name="Product">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q7="http://schemas.datacontract.org/2004/07/SMS.Entities.BaseClasses" base="q7:BaseEntity">
        <xs:sequence>
          <xs:element minOccurs="0" name="Product_Category" nillable="true" type="tns:Category" />
          <xs:element minOccurs="0" name="Product_Desc" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Product_ID" type="xs:int" />
          <xs:element minOccurs="0" name="Product_Name" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Product_Owner" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="Product" nillable="true" type="tns:Product" />
  <xs:complexType name="Category">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q8="http://schemas.datacontract.org/2004/07/SMS.Entities.BaseClasses" base="q8:BaseEntity">
        <xs:sequence>
          <xs:element minOccurs="0" name="Category_ID" type="xs:int" />
          <xs:element minOccurs="0" name="Category_Name" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="Category" nillable="true" type="tns:Category" />
  <xs:complexType name="Brand">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q9="http://schemas.datacontract.org/2004/07/SMS.Entities.BaseClasses" base="q9:BaseEntity">
        <xs:sequence>
          <xs:element minOccurs="0" name="Brand_Desc" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Brand_ID" type="xs:int" />
          <xs:element minOccurs="0" name="Brand_Name" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Brand_Rating" type="xs:int" />
          <xs:element minOccurs="0" name="IsLive" type="xs:boolean" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="Brand" nillable="true" type="tns:Brand" />
  <xs:complexType name="StockMaster">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q10="http://schemas.datacontract.org/2004/07/SMS.Entities.BaseClasses" base="q10:BaseEntity">
        <xs:sequence>
          <xs:element minOccurs="0" name="Date" type="xs:dateTime" />
          <xs:element minOccurs="0" name="Extra_Charge" type="xs:decimal" />
          <xs:element minOccurs="0" name="PaidAmount" type="xs:decimal" />
          <xs:element minOccurs="0" name="Stock_Date" type="xs:dateTime" />
          <xs:element minOccurs="0" name="Stock_ID" type="xs:int" />
          <xs:element minOccurs="0" name="Supplier" nillable="true" type="tns:Supplier" />
          <xs:element minOccurs="0" name="TotalAmount" type="xs:decimal" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="StockMaster" nillable="true" type="tns:StockMaster" />
  <xs:complexType name="Supplier">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q11="http://schemas.datacontract.org/2004/07/SMS.Entities.BaseClasses" base="q11:BaseEntity">
        <xs:sequence>
          <xs:element minOccurs="0" name="CityID" type="xs:int" />
          <xs:element minOccurs="0" name="Supplier_Address" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Supplier_AlternateMobile" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Supplier_Email" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Supplier_ID" type="xs:int" />
          <xs:element minOccurs="0" name="Supplier_Mobile" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Supplier_Name" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="Supplier" nillable="true" type="tns:Supplier" />
  <xs:complexType name="SalesManDetail">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q12="http://schemas.datacontract.org/2004/07/SMS.Entities.BaseClasses" base="q12:BaseEntity">
        <xs:sequence>
          <xs:element minOccurs="0" name="DOB" type="xs:dateTime" />
          <xs:element minOccurs="0" name="DateOfJoining" type="xs:dateTime" />
          <xs:element minOccurs="0" name="SalesMan_Address" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="SalesMan_ID" type="xs:int" />
          <xs:element minOccurs="0" name="SalesMan_Mobile" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="SalesMan_Name" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="SalesManDetail" nillable="true" type="tns:SalesManDetail" />
</xs:schema>